Skip to content

fix(arborist): re-apply packageExtensions to the linked actual tree#9569

Merged
owlstronaut merged 1 commit into
npm:latestfrom
manzoorwanijk:fix/linked-packageextensions-actual-tree
Jun 18, 2026
Merged

fix(arborist): re-apply packageExtensions to the linked actual tree#9569
owlstronaut merged 1 commit into
npm:latestfrom
manzoorwanijk:fix/linked-packageextensions-actual-tree

Conversation

@manzoorwanijk

@manzoorwanijk manzoorwanijk commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Follow-up of #9496

Under install-strategy=linked, a root packageExtensions rule that adds a missing dependency installs and works at runtime, but every command that reads the actual tree loses the edge:

  • npm ls --all --json omits the extension-created dependency and its provenance.
  • npm explain <dep> fails with No dependencies found matching <dep>.
  • npm patch add <dep> fails with EPATCHNOTINSTALLED.

Hoisted installs and normally-declared transitive deps are unaffected.

References

Fixes #9568

@manzoorwanijk manzoorwanijk force-pushed the fix/linked-packageextensions-actual-tree branch from 2e0f44d to 71de540 Compare June 18, 2026 18:40
@manzoorwanijk manzoorwanijk marked this pull request as ready for review June 18, 2026 18:41
@manzoorwanijk manzoorwanijk requested review from a team as code owners June 18, 2026 18:41
@owlstronaut owlstronaut merged commit f9c977c into npm:latest Jun 18, 2026
23 checks passed
@manzoorwanijk manzoorwanijk deleted the fix/linked-packageextensions-actual-tree branch June 18, 2026 19:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] packageExtensions-created dependencies are hidden from actual-tree commands under install-strategy=linked

2 participants